import { createMemoryHistory,createRouter } from 'vue-router'
import Add from '../components/Add.vue'
import Login from '../components/Login.vue'
import Shopping from '../components/Shopping.vue'
const routes = [
    {
        path:'/',
        component:Shopping
    },
    {
        path:'/home',
        component:Shopping
    },
    {
        path:'/add',
        component:Add
    },
    {
        path:'/login',
        component:Login
    },
]
const router = createRouter({
    history:createMemoryHistory(),
    routes

})

export default router

